Integrated Development Environment

Integrated Development Environment

The IDE (integrated development environment) configuration of MvCameraSDK is shown below.

Operating System

Item

Required

Linux Operating System

Ubuntu with Version 14.04 (32-bit or 64-bit) , Ubuntu with 16.04 (32-bit or 64-bit), Redhat7 (64-bit), Centos7 (32-bit or 64-bit), gcc/g++ with Version 4.6.3 or Above

Supported ARM board type: NVIDIA TX2 (Ubuntu16.04), RaspberryPiB3.0+ (NOOBS_2.8.2), ODROID-XU4 (Ubuntu16.04/Ubuntu18.04).
Note:

RaspberryPiB3.0+ and ODROID-XU4 only support GigE camera.

MVS Installation

  1. Get the system root authority before Machine Vision Software (MVS) installation.

  2. Unzip the MVS installation package by "tar-xzvf".

    Note:

    The MVS installation packages are different of different hardware environment (x86_64, i386, armhf, aarch64), you should select suitable installation package according to actual hardware environment, for details contact the technical supporter.

  3. Execute the script "source ./setup.sh" to install MVS.

  4. Run ./MVS.sh under the directory "/opt/MVS/bin/MVSPlayer" to check if MVS is installed properly.

Development Folder Contents

By default, the Machine Vision Software (MVS) is installed in the path of /opt/MVS. After installation, folder MVS contains the folder Development, of which the contents are as below:

Content Name

Description

driver

Camera drive files

license

License

lib

lib files

logserver

Log server

doc

Programming documents

bin

Executable file

include

Header files

Samples

Sample programs

Disable Firewall

If cameras cannot be enumerated in Linux operating system, you should disable the firewall. Refer to the following methods to disable firewall in different Linux systems:
  • Ubuntu

    The firewall on Ubuntu is disabled by default

  • CentOS 7

    Disable temporarily: service firewalld stop or systemctl stop firewalld

    Disable permanently: chkconfig firewalld off

  • RedHat7

    Disable temporarily: service firewalld stop or systemctl stop firewalld

    Disable permanently: chkconfig firewalld off

NIC Configuration

It is recommended to enable jumbo frame in Linux. Refer to the following methods (only for reference):
  • Enable temporarily: ifconfig eth0 mtu 9000

  • Enable permanently: write "ifconfig eth0 mtu 9000" to the last line of /opt/run_driver.sh, and it takes effect after restarting.

Note:

eth0 is a NIC name, and varies in different systems; 9000 indicates the maximum size of the received packet, and the packet with maximum size may not be received by older NIC, you should set the size according to actual situation.

Script

  • set_env_path.sh: Set environment variable, and add dynamic link library to PATH environment variable.

  • set_rp_filter.sh: Disable rpfilter to enumerate the camera when the camera and PC are in different IP segments.

  • set_sdk_version.sh: Generate SDK soft links.

  • set_socket_buffer_size.sh: For GigE packet loss, you can increase socket buffer to reduce the packet loss.

  • set_usb_priority.sh: Set udev rule to use USB 3.0 device when the user has no administrator permission.

  • set_usbfs_memory_size.sh: Set USB buffer to connect multiple USB 3.0 devices with ultra HD resolution.

Note:
  • For GigE camera, it is recommended to enable jumbo frame, set MTU to 9000 and increase socket buffer (set_socket_buffer_size.sh).

  • For USB 3.0 camera, it is recommended to set the USB buffer (set_usbfs_memory_size.sh).

Integrated Development Environment

The IDE (integrated development environment) configuration of MvCameraSDK is shown below.

Operating System

Item

Required

Linux Operating System

Ubuntu with Version 14.04 (32-bit or 64-bit) , Ubuntu with 16.04 (32-bit or 64-bit), Redhat7 (64-bit), Centos7 (32-bit or 64-bit), gcc/g++ with Version 4.6.3 or Above

Supported ARM board type: NVIDIA TX2 (Ubuntu16.04), RaspberryPiB3.0+ (NOOBS_2.8.2), ODROID-XU4 (Ubuntu16.04/Ubuntu18.04).
Note:

RaspberryPiB3.0+ and ODROID-XU4 only support GigE camera.

MVS Installation

  1. Get the system root authority before Machine Vision Software (MVS) installation.

  2. Unzip the MVS installation package by "tar-xzvf".

    Note:

    The MVS installation packages are different of different hardware environment (x86_64, i386, armhf, aarch64), you should select suitable installation package according to actual hardware environment, for details contact the technical supporter.

  3. Execute the script "source ./setup.sh" to install MVS.

  4. Run ./MVS.sh under the directory "/opt/MVS/bin/MVSPlayer" to check if MVS is installed properly.

Development Folder Contents

By default, the Machine Vision Software (MVS) is installed in the path of /opt/MVS. After installation, folder MVS contains the folder Development, of which the contents are as below:

Content Name

Description

driver

Camera drive files

license

License

lib

lib files

logserver

Log server

doc

Programming documents

bin

Executable file

include

Header files

Samples

Sample programs

Disable Firewall

If cameras cannot be enumerated in Linux operating system, you should disable the firewall. Refer to the following methods to disable firewall in different Linux systems:
  • Ubuntu

    The firewall on Ubuntu is disabled by default

  • CentOS 7

    Disable temporarily: service firewalld stop or systemctl stop firewalld

    Disable permanently: chkconfig firewalld off

  • RedHat7

    Disable temporarily: service firewalld stop or systemctl stop firewalld

    Disable permanently: chkconfig firewalld off

NIC Configuration

It is recommended to enable jumbo frame in Linux. Refer to the following methods (only for reference):
  • Enable temporarily: ifconfig eth0 mtu 9000

  • Enable permanently: write "ifconfig eth0 mtu 9000" to the last line of /opt/run_driver.sh, and it takes effect after restarting.

Note:

eth0 is a NIC name, and varies in different systems; 9000 indicates the maximum size of the received packet, and the packet with maximum size may not be received by older NIC, you should set the size according to actual situation.

Script

  • set_env_path.sh: Set environment variable, and add dynamic link library to PATH environment variable.

  • set_rp_filter.sh: Disable rpfilter to enumerate the camera when the camera and PC are in different IP segments.

  • set_sdk_version.sh: Generate SDK soft links.

  • set_socket_buffer_size.sh: For GigE packet loss, you can increase socket buffer to reduce the packet loss.

  • set_usb_priority.sh: Set udev rule to use USB 3.0 device when the user has no administrator permission.

  • set_usbfs_memory_size.sh: Set USB buffer to connect multiple USB 3.0 devices with ultra HD resolution.

Note:
  • For GigE camera, it is recommended to enable jumbo frame, set MTU to 9000 and increase socket buffer (set_socket_buffer_size.sh).

  • For USB 3.0 camera, it is recommended to set the USB buffer (set_usbfs_memory_size.sh).